<template>
  <div class="about">
    <el-container>
      <el-aside width="200px">
        <el-menu
          default-active="/goods"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          router
        >
          <el-menu-item index="/goods">
            <i class="el-icon-menu"></i>
            <span slot="title">商品管理</span>
          </el-menu-item>
          <el-menu-item index="/goodslist">
            <i class="el-icon-document"></i>
            <span slot="title">商品列表</span>
          </el-menu-item>
          <el-menu-item index="/shopcar">
            <i class="el-icon-setting"></i>
            <span slot="title">购物车列表</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header>
          <div>
            <i class="el-icon-s-fold"></i>
            <span>{{ $route.meta.title }}</span>
          </div>
          <div><el-button>退出登陆</el-button></div>
        </el-header>
        <el-main><router-view></router-view></el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style lang="scss">
.el-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
